package com.gopay.common.util.xml.xmlutils.message;


/**
 * 校验对象
 * @author liujy
 *
 */
public class Validator{

	/** 是否必选 */
    private boolean required;

    /** 最小长度 */
    private String minLength;
    /** 最大长度 */
    private String maxLength;

    /** 正则表达式 */
    private String pattern;
    
    /** 比较值 */
    private String compareTo;
    
    /** 指定的验证类 */
    private String type;
    
    /** 比较值 */
    private String value;

    /** 最小值 */
    private String minValue;
    /** 最大值 */
    private String maxValue;

    /** 输出信息 */
    private String message;

    /** 错误代码 */
    private String errorCode;

    /** 组合校验字段 */
    private String combinationField;
    /** 组合校验的值 */
    private String combinationValue;

    public String getCombinationValue() {
        return combinationValue;
    }

    public void setCombinationValue(String combinationValue) {
        this.combinationValue = combinationValue;
    }

    public String getCombinationField() {
        return combinationField;
    }

    public void setCombinationField(String combinationField) {
        this.combinationField = combinationField;
    }

    public boolean isRequired() {
		return required;
	}

	public void setRequired(boolean required) {
		this.required = required;
	}

	public String getPattern() {
        return pattern;
    }

    public void setPattern(String pattern) {
        this.pattern = pattern;
    }

    public String getCompareTo() {
        return compareTo;
    }

    public void setCompareTo(String compareTo) {
        this.compareTo = compareTo;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getMinLength() {
        return minLength;
    }

    public void setMinLength(String minLength) {
        this.minLength = minLength;
    }

    public String getMaxLength() {
        return maxLength;
    }

    public void setMaxLength(String maxLength) {
        this.maxLength = maxLength;
    }

    public String getMinValue() {
        return minValue;
    }

    public void setMinValue(String minValue) {
        this.minValue = minValue;
    }

    public String getMaxValue() {
        return maxValue;
    }

    public void setMaxValue(String maxValue) {
        this.maxValue = maxValue;
    }
}
